@extends('layouts.scaffold')

@section('head')
	{{ HTML::style('styles/newGame.css') }}
@endsection

@section('navbar')
	@include('menu.navbar')
@endsection

@section('main')
<div class="panel panel-primary">

	<div class="panel-primary">
		<h2 class="panel-heading">Novo Jogo</h2>
	</div>
	<div class="panel-body">
		{{ Form::open(array('method' => 'post', 'route' => 'criarnovojogo', 'role' => 'form', 'class' => 'form-horizontal ng-valid')) }}

			<!-- Nome do Jogo -->
			<div class="form-group">
				<label for="gameName" class="col-md-2 control-label">Nome</label>
				<div class="col-sm-10"><input type="text" class="form-control" id="gameName" name="gameName" placeholder="Insira o nome do jogo"></div>
			</div>

			<!-- Empresa do Jogo -->
			<div class="form-group">
				<label for="gameCompany" class="col-md-2 control-label">Empresa</label>
				<div class="col-sm-10"><input type="text" class="form-control" id="gameCompany" name="gameCompany" placeholder="Insira a empresa do jogo"></div>
			</div>

			<!-- Data do Jogo -->
			<div class="form-group">
				<label for="gameDate" class="col-md-2 control-label">Data</label>
				<div class="col-sm-10"><input type="date" class="form-control" id="gameDate" name="gameDate" placeholder="AAAA-MM-DD"></div>
			</div>

			<!-- Numero de Equipas -->
			<div class="form-group">
				<label for="numTeams" class="col-md-2 control-label">Nº de Equipas</label>
				<div class="col-sm-10"><input type="number" class="form-control" id="numTeams" name="numTeams" required min="1" placeholder="Insira o número de equipas"></div>
			</div>
			<div class="form-group">
				<div class="col-sm-offset-2 col-sm-2">
		  			<button type="submit" class="btn btn-primary btn-block">Seguinte</button>
		  		</div>
			</div>
		{{ Form::close() }}
	</div>
</div>
@endsection